<!-- 优惠券 -->
<script id="tpl-coupon-item" type="text/template">
    {{ each $data }}
    <div class="file-item">
        <div><img src="{{ $value.image }}"></div>
        <div style="text-align: center;"><small>{{ $value.name }}</small></div>
        <input type="hidden" name="data[values][gift][id]" value="{{ $value.coupon_id }}">
        <input type="hidden" name="data[values][gift][name]" value="{{ $value.name }}">
        <input type="hidden" name="data[values][gift][image]" value="{{ $value.image }}">
    </div>
    {{ /each }}
</script>

<!-- 商品 -->
<script id="tpl-goods-item" type="text/template">
    {{ each $data }}
    <div class="file-item">
        <div><img src="{{ $value.goods_image }}"></div>
        <div style="text-align: center;"><small>{{ $value.goods_name }}</small></div>
        <input type="hidden" name="data[values][gift][id]" value="{{ $value.goods_id }}">
        <input type="hidden" name="data[values][gift][name]" value="{{ $value.goods_name }}">
        <input type="hidden" name="data[values][gift][image]" value="{{ $value.goods_image }}">
    </div>
    {{ /each }}
</script>


